# include <stdio.h>

int main(int argc, const char *argv[]) {
    int score = 0;
    scanf("%d", &score);
    int level = score / 10;
    if(score < 0 || score > 100) {
        printf("输入数据有误退出！\n");
        return -1;
    }
    switch(level) {
        case 10:
        case 9:
            printf("A\n");
            break;
        case 8:
            printf("B\n");
            break;
        case 7:
        case 6:
            printf("C\n");
            break;
        default:
            printf("NO PASS\n");
            break;

    }
    return 0;
}
